package edu.whu.puppygo.service;

import edu.whu.puppygo.entity.User;

import java.util.Optional;

/**
 * @author guanruwang
 * @date 2023/11/8$
 */

public interface UserService {

    public User addUser(User user);

    public User createUser(String phone);

    public Optional<User> getUser(String id);

    public void updateUser(User user);

    public Optional<User> findByUsername(String username);
}
